<template>
    <div class="alert">
        <div v-show="false" class="confirm">
            <h1>
                <i class="el-icon-bell"></i>
                提示
            </h1>
            <div>
                <small>确认拨打电话:</small>
                <p>应急局-刘长生</p>
                <button>确认</button>
                <button>取消</button>
            </div>
        </div>
        <div class="calling" v-show="show_call">
            <i class="el-icon-phone"></i>
            <span>{{name}}</span>
            拨号中
            <button @click="show_call=false">挂断</button>
        </div>
    </div>
</template>

<script type="text/ecmascript-6">
    export default {
        data () {
            return {
                name:'__',
                show_call:false,
            }
        },

    }
</script>
<style lang="less" rel="stylesheet/less">
    .alert{
        .confirm{
            position: fixed;
            left: 50%;
            top: 50%;
            z-index: 9;
            width: 164*@ratio;
            height: 98*@ratio;
            background: #001d3c;
            h1{
                font-weight: normal;
                font-size:10px*@ratio;
                color: #10AFF3;
            }
        }
        .calling{
            position: fixed;
            left: 50%;
            top: 50%;
            z-index:1000;
            background: #001d3c;
            margin:-24px*@ratio 0 0 -132px*@ratio ;
            width: 264px*@ratio;
            height: 48px*@ratio;
            padding: 0 15px*@ratio;
            color: #fff;
            font-size: 12px*@ratio;
            display: flex;
            align-items: center;
            justify-content: space-between;
            i{
                font-size: 14px*@ratio;
            }
            button{
                cursor: pointer;
                height: 20px*@ratio;
                line-height:20px*@ratio;
                background: red;
                width: 60px*@ratio;
                border: 0;
                border-radius: 9px*@ratio;
                color: #fff;
                font-size: 12px*@ratio;
            }
        }
    }
</style>
